﻿using System.ComponentModel;
using Aierp.Utility;
using Aierp.Utility.Data;
using Chloe.Entity;


namespace Aierp.SystemEntities.System
{
    [TableName("Sys_Buttons")]
    [Description("按钮")]
    public class Sys_Buttons
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Column(IsPrimaryKey = true)]
        [AutoIncrement]
        public int KeyId { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        [Description("名称")]
        public string ButtonText { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [Description("排序")]
        public int Sortnum { get; set; }
        /// <summary>
        /// 描述说明
        /// </summary>
        [Description("描述")]
        public string Remark { get; set; }

        /// <summary>
        /// 图标类名称
        /// </summary>
        [Description("图标类名称")]
        public string iconCls { get; set; }

        /// <summary>
        /// 图标url
        /// </summary>
        [Description("图标url")]
        public string IconUrl { get; set; }

        /// <summary>
        /// 按钮标记
        /// </summary>
        [Description("按钮标记")]
        public string ButtonTag { get; set; }

        /// <summary>
        /// 按钮html
        /// </summary>
        [Description("按钮html")]
        public string ButtonHtml { get; set; }

        public override string ToString()
        {
            return JSONhelper.ToJson(this);
        }
    }
}
